package com.zzedu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzedu.domain.ZzStuClassesR;
import com.zzedu.mapper.ZzZzStuClassesRMapper;
import com.zzedu.service.IZzZzStuClassesRService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ZzZzStuClassesRServiceImpl extends ServiceImpl<ZzZzStuClassesRMapper, ZzStuClassesR> implements IZzZzStuClassesRService {


    public List<Map<String, Object>> countStudentsByClassIds(List<Long> classIdList) {
        return baseMapper.countStudentsByClassIds(classIdList);
    }

    @Override
    public Map<String, Object> studentCountAndClzzCountByTeacherId(Long teacherId) {
       return baseMapper.studentCountAndClzzCountByTeacherId(teacherId);
    }
}
